<#assign base = request.contextPath />
<#macro layout title index>
    <!DOCTYPE html>
    <html>
    <head>
        <base id="base" href="${base}">
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
        <link rel="icon" type="image/png" href="${base}/assets/i/favicon.png">
        <link rel="apple-touch-icon-precomposed" href="${base}/assets/i/app-icon72x72@2x.png">
        <meta name="apple-mobile-web-app-title" content="爱吧" />
        <link rel="stylesheet" href="${base}/assets/css/amazeui.min.css" />
        <link rel="stylesheet" href="${base}/assets/css/admin.css">
        <link rel="stylesheet" href="${base}/assets/css/app.css">
        <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
        <title>${title}</title>

    </head>
    <body>
        <#include "header.html" />

        <div class="tpl-page-container tpl-page-header-fixed">
            <#include "menu.html" />
            <div class="tpl-content-wrapper">

                <#nested/>

            </div>

        </div>



    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="//cdn.jsdelivr.net/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="//cdn.jsdelivr.net/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <script src="${base}/assets/js/amazeui.min.js"></script>
    <script src="${base}/assets/js/iscroll.js"></script>
    <script src="${base}/assets/js/app.js"></script>

    </body>
    </html>
</#macro>